package com.janyee.buddha;

import android.view.animation.Interpolator;

/**
 * Created by kmlixh on 18/1/2.
 */

public class PowInterpolator implements Interpolator {
    @Override
    public float getInterpolation(float input) {
        if (input >= 1.0f) {
            return 1.0f;
        }
        if (input <= 0f) {
            return 0f;
        }
        return (float) (1 - Math.pow(input - 1, 2));
    }
}
